$ontext
Defined and declare reporting parameters 
$offtext


$if declared r_cost $goto already_declared
parameter
    r_characteristics(p,*)   report plant characteristics
    r_cost(p,t,*)            report marginal cost components
;
$label already_declared

r_characteristics(p,"efficiency") = eta(p);
r_characteristics(p,"emission_rate") = theta(p);
r_cost(p,t,"cost_carbon") = pCO2(t)*theta(p);
r_cost(p,t,"cost_fuel") = sum(map_pf(p,f), pf(f,t))/eta(p);
r_cost(p,t,"cost_ramping")$(ord(t) gt 1 and GEN_UP.L(p,t))
                        = sc(p,t);
r_cost(p,t,"cost_total") = r_cost(p,t,"cost_fuel")
                           + r_cost(p,t,"cost_carbon")
                           + r_cost(p,t,"cost_ramping");